export * from './wxShare'
// 获取地址栏参数
export function getQueryString(name: string) {
  const reg = new RegExp(`(^|&)${name}=([^&]*)(&|$)`)
  const r = window.location.search.slice(1).match(reg)
  if (r !== null) {
    return decodeURI(r[2])
  }
  return null
}
